var mysql = require('mysql');
var conn = mysql.createConnection({
    host: '172.10.50.133',
    user: 'ciimp_user',
    password: 'scdp12',
    database:'test',
    port: 3306
});
console.log('链接前'+conn)
conn.connect();
console.log('链接后'+conn)
console.time('a')

async  function getData() {
	try {
	var data = await conn.query(' SELECT * from scdp_user  limit 20 ', function (error, results, fields) {
      if (error) throw error;
            console.log('The solution is: ', results.length);
      
    });
	console.log(data)
	}catch(e){
	console.log(e)
}

}

getData()
console.log('b')
conn.end();
